package com.ruoyi.system.service;

import java.util.List;
import com.ruoyi.system.domain.CommunityBuilding;
import com.ruoyi.system.domain.dto.CommunityBuildingDto;
import com.ruoyi.system.domain.vo.BuildingVo;

/**
 * buildingService接口
 * 
 * @author hanpee
 * @date 2024-03-22
 */
public interface ICommunityBuildingService 
{
    /**
     * 查询building
     * 
     * @param id building主键
     * @return building
     */
    public CommunityBuilding selectCommunityBuildingById(Long id);

    /**
     * 查询building列表
     * 
     * @param communityBuilding building
     * @return building集合
     */
    public List<CommunityBuilding> selectCommunityBuildingList(CommunityBuilding communityBuilding);

    /**
     * 新增building
     * 
     * @param communityBuilding building
     * @return 结果
     */
    public int insertCommunityBuilding(CommunityBuilding communityBuilding) throws Exception;

    /**
     * 修改building
     * 
     * @param communityBuilding building
     * @return 结果
     */
    public int updateCommunityBuilding(CommunityBuilding communityBuilding) throws Exception;

    /**
     * 批量删除building
     * 
     * @param ids 需要删除的building主键集合
     * @return 结果
     */
    public int deleteCommunityBuildingByIds(Long[] ids);

    /**
     * 删除building信息
     * 
     * @param id building主键
     * @return 结果
     */
    public int deleteCommunityBuildingById(Long id) throws Exception;

    /**
     * 通过名字查询
     */
    public BuildingVo getByName(String name);

    /**
     * echarts查询数据
     */
    public List<CommunityBuildingDto> listRooms(CommunityBuildingDto communityBuildingDto);

    /**
     * 查询所有楼宇
     * @return List集合
     */
    List<CommunityBuildingDto> listBuilding();

    /**
     * 级联删除
     * @param id 楼宇Id
     * @return boolean
     */
    public boolean watchParams(Long id);
}
